#!/usr/bin/dev python
a = {
	"0":0,
	"1":1,
	"2":2,
	"3":3,
	"4":4,
	"5":5,
	"6":6,
	"7":7,
	"8":8,
	"9":9,
}

def int_num():
    for x in range(len_int):
        num=ls[0][::-1][x]
        b = a[num]*10**(x)
        li.append(b)
    return li

def float_num():
    for y in range(len_float):
        num = ls[1][y]
        b = a[num]*(0.1**(y+1))
        lf.append(b)
    return lf

def print_num(num):
    print(num)
    print(type(num))

s = input("input one number:" )
print(type(s))
li = []
lf = []
ls = s.split('.')
len_int = len(ls[0])
int_num()
if "." in s:
    len_float = len(ls[1])
    float_num()
    print_num(sum(li)+sum(lf))
else:
    print_num(sum(li))
